package com.kingeid.test;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 指令实体类
 */
public class InstructParams implements Parcelable {
    private String type;//指令类型：1002 无证核验，1003 扫赣通码
    private String appId; //应用ID
    private String name;//办事人姓名
    private String idCard;//办事人身份证号
    private String bizTradeNo;//业务ID

    public String getBizTradeNo() {
        return bizTradeNo;
    }

    public void setBizTradeNo(String bizTradeNo) {
        this.bizTradeNo = bizTradeNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.type);
        dest.writeString(this.appId);
        dest.writeString(this.name);
        dest.writeString(this.idCard);
        dest.writeString(this.bizTradeNo);
    }

    public InstructParams() {
    }

    protected InstructParams(Parcel in) {
        this.type = in.readString();
        this.appId = in.readString();
        this.name = in.readString();
        this.idCard = in.readString();
        this.bizTradeNo = in.readString();
    }

    public static final Creator<InstructParams> CREATOR = new Creator<InstructParams>() {
        @Override
        public InstructParams createFromParcel(Parcel source) {
            return new InstructParams(source);
        }

        @Override
        public InstructParams[] newArray(int size) {
            return new InstructParams[size];
        }
    };
}
